package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 子渠道
 * </p>
 *
 * @author kutty
 * @since 2018-10-25
 */
@TableName("sys_channel_son")
public class ChannelSon extends Model<ChannelSon> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 渠道
     */
    private String channel;
    /**
     * 父渠道ID
     */
    @TableField("channel_father_id")
    private Integer channelFatherId;
    /**
     * 是否使用
     */
    @TableField("is_use")
    private String isUse;
    /**
     * 备注
     */
    private String remark;
    /**
     * jar包
     */
    @TableField("jar_id")
    private String jarId;
    /**
     * 时间
     */
    private Date date = new Date();


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public Integer getChannelFatherId() {
        return channelFatherId;
    }

    public void setChannelFatherId(Integer channelFatherId) {
        this.channelFatherId = channelFatherId;
    }

    public String getIsUse() {
        return isUse;
    }

    public void setIsUse(String isUse) {
        this.isUse = isUse;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getJarId() {
        return jarId;
    }

    public void setJarId(String jarId) {
        this.jarId = jarId;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ChannelSon{" +
        "id=" + id +
        ", channel=" + channel +
        ", channelFatherId=" + channelFatherId +
        ", isUse=" + isUse +
        ", remark=" + remark +
        ", jarId=" + jarId +
        ", date=" + date +
        "}";
    }
}
